<?php

use yii\helpers\Html;
use yii\widgets\DetailView;

/* @var $this yii\web\View */
/* @var $model common\models\member\Member */

$this->title = $model->id;
$this->params['breadcrumbs'][] = ['label' => Yii::t('app', 'Members'), 'url' => ['index']];
$this->params['breadcrumbs'][] = $this->title;
?>
<?php $this->beginBlock('siderbar'); ?>
<?= $this->render('//layouts/mem-menu') ?>
<link href="<?= yii::getAlias('@web');?>/css/select2.css" rel="stylesheet"/>
<script type="text/javascript" src="<?= yii::getAlias('@web');?>/js/jquery.js"></script>
<script type="text/javascript" src="<?= yii::getAlias('@web');?>/js/PCASClass.js"></script>



<?php $this->endBlock(); ?>
<div class="member-view">
    <p>
        <?= Html::a(Yii::t('app', 'Update'), ['update', 'id' => $model->id], ['class' => 'btn btn-primary']) ?>
        <?= Html::a(Yii::t('app', 'Delete'), ['delete', 'id' => $model->id], [
            'class' => 'btn btn-danger',
            'data' => [
                'confirm' => Yii::t('app', 'Are you sure you want to delete this item?'),
                'method' => 'post',
            ],
        ]) ?>
    </p>
    <?= DetailView::widget([
        'model' => $model,
        'attributes' => [
            'id',
            'username',
            'xingming',
            'phone',
            'work',
            'email:email',
            [
                'attribute' => 'qiyong',
                'value' => $model->getQiyong($model->qiyong),
            ],
        ],
    ]) ?>

</div>
<table class="table table-striped table-bordered detail-view">
    <tbody>
    <tr>
        <th style="width: 32.3%;" >企业名称</th>
        <th>
        <?= $model->company ?>
        </th>
    </tr>
    <tr>
        <th style="width: 32.3%;" class="Labl">企业所在地</th>
        <th>
            <?= $model['loc_province'] ?><?= $model['loc_city'] ?><?= $model['loc_town'] ?>
<!--            <select id="loc_province" style="width:135px;"></select>-->
<!--            <select id="loc_city" style="width:135px; margin-left: 10px"></select>-->
<!--            <select id="loc_town" style="width:135px;margin-left: 10px"></select>-->
        </th>
    </tr>
    <tr>
        <th style="width: 32.3%;" >企业详细地址</th>
        <th><?= $model->address ?></th>
    </tr>
    <tr>
        <th style="width: 32.3%;" >企业电话</th>
        <th>
        <?= $model->farentel ?>
        </th>
    </tr>
    <tr>
        <th style="width: 32.3%;" >职工人数</th>
        <th>
        <?= $model->grnum ?>
        </th>
    </tr>
    <tr>
        <th style="width: 32.3%;" >注册资金</th>
        <th>
        <?= $model->zhucezj ?>
        </th>
    </tr>
    <tr>
        <th style="width: 32.3%;" >联系人姓名</th>
        <th>
        <?= $model->faren ?>
        </th>
    </tr>
    <tr>
        <th style="width: 32.3%;" >联系人电话</th>
        <th>
        <?= $model->farenphone ?>
        </th>
    </tr>
    <tr>
        <th style="width: 32.3%;" >电子邮箱</th>
        <th>
        <?= $model->farenemail ?>
        </th>
    </tr>
    <tr>
        <th style="width: 32.3%;" >统一社会信用代码</th>
        <th>
        <?= $model->yyzhizao ?>
        </th>
    </tr>
    <tr>
        <th style="width: 32.3%;" >营业执照所在地</th>
        <th>
        <?= $model->zcdizhi ?>
        </th>
    </tr>
    <tr>
        <th style="width: 32.3%;" >营业执照有效期</th>
        <th>
        <?= $model->qychengli ?> <?= $model->qychenglizhi ?>
        </th>
    </tr>
    <tr>
        <th style="width: 32.3%;" >法定经营范围</th>
        <th>
        <?= $model->jyfanwei ?>
        </th>
    </tr>
    <tr>
        <th style="width: 32.3%;" >营业执照电子版</th>
        <th>
        <?php if($model->yyzhizhaoimg){?>
          <img style="width:200px; height:200px;" src="<?=Yii::$app->params['setshow']?><?= json_decode($model->yyzhizhaoimg, true)['newname'];?>"/>
        <?php } ?>
        </th>
    </tr>
    <tr>
        <th style="width: 32.3%;" >法人身份证号码</th>
        <th>
            <?= $model->card ?>
        </th>
    </tr>
    <tr>
        <th style="width: 32.3%;" >身份证正面电子版</th>
        <th>
        <?php if($model->cardz){?>
          <img style="width:200px; height:200px;" src="<?=Yii::$app->params['setshow']?><?= json_decode($model->cardz, true)['newname'];?>"/>
        </th>
        <?php } ?>
    </tr>
    <tr>
        <th style="width: 32.3%;" >身份证背面电子版</th>
        <th>
        <?php if($model->cardf){?>
          <img style="width:200px; height:200px;" src="<?=Yii::$app->params['setshow']?><?= json_decode($model->cardf, true)['newname'];?>"/>
        </th>
        <?php } ?>
    </tr>
    <tr>
        <th style="width: 32.3%;" >相关资质</th>
        <th>
        <?php if($model->fwdengjiimg){?>
          <img style="width:200px; height:200px;" src="<?=Yii::$app->params['setshow']?><?= json_decode($model->fwdengjiimg, true)['newname'];?>"/>
        </th>
        <?php } ?>
        </th>
    </tr>
    </tbody>
</table>

